package HomeWork;

import java.util.Scanner;

/**
 * @author 李孟琦
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: HomeWork
 * @ClassName: TestTicketPrice
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/9/29 17:36
 * @Copyright 李孟琦版板所有
 */
public class TestTicketPrice {
    public static void main(String[] args) {
        ScenicAreaTicketPrice newPeople = new ScenicAreaTicketPrice();
        Scanner input= new Scanner(System.in);
        System.out.print("请输入您的姓名:");
        newPeople.visitor=input.next();
        System.out.print("请输入您的年龄:");
        newPeople.ticketPrice=20;
        newPeople.age=input.nextInt();
        newPeople.buyTicket();
    }
}
